const path = require('path');

module.exports = {
    //mode:'',
    entry:{
        app:"./src/app.js"
    },
    output:{
        filename:'[name].[chunkhash:6].js',
        path:path.resolve(__dirname,"./dist")
    },
    //loader
    module:{
        rules:[
            {
                test:/\.js$/,
                exclude: /(node_modules|bower_components)/,
                use:'babel-loader'
            },
            {
                test:/\.css$/,
                use:'css-loader'
            }
        ]
    }
}